package com.zhiyun.mapper;

import com.zhiyun.domain.TestPaper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TestPaperMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TestPaper record);

    TestPaper selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(TestPaper record);

    List<TestPaper> selectByTeacherId(int id);

    TestPaper selectByNameAndTeacherId(@Param("name") String name, @Param("teacherId") Integer teacherId);

    TestPaper selectByIdWithQuestions(int id);
}